<form method="POST" action="">
	<input type="text" name="email" />
	<input type="password" name="password" />
	<input type="submit" name="Entrar"/>
</form>

<?php
	require_once 'autoloader.php';
	
	if($_SERVER['REQUEST_METHOD'] == 'POST'){
		if(empty($_POST['email']) || empty($_POST['password'])){
			echo 'completa todos los campos';
		}else{
			$u = new User();
			$u->login($_POST['email'], $_POST['password']);
		}
	}
?>
